
import util from '../../../common/js/util'
import NProgress from 'nprogress'
import axios from 'axios';
import address from "../../../../models/dict/address.js"  //任务字典模块
import moment from 'moment'

import task from "../../../../models/dict/task.js"  //任务字典模块
import array from "../../../../models/comm/array.js"  //数组操作模块
import yz from "../../../../models/comm/yz.js"  //数组操作模块
import Vue from 'vue'

import math from 'mathjs';




export default {
    data() {
        return {



            unitArray: task.unitArray(),

            listLoading: false,
            amount: 0,
            showSelWageClass: false



        }
    },
    methods: {


        addDetail(wageClass) {  //合计费用

            this.currObj.detail.push(task.fmtDetailItem({ wageClass: wageClass }, "200"))



        },

        addDetail2(wageClass) {  //单件费用

            this.currObj.detail2.push(task.fmtDetailItem({ wageClass: wageClass }, "200"))

        }

        ,

        fmtTask: function () {


            task.fmtTask(this.currObj);
        },
        delDetal(row, index) {


            this.currObj.detail.splice(index, 1);
        },
        getWageClass() {
            return task.WageClass();

        }



    },
    props: {
        currObj: {

        }


    }
}